import request from '@/utils/request'

// 查询订单汇总到期对应列表
export function listCustomerorderdq(query) {
  return request({
    url: '/CustomerorderlineDq/customerorderdq/list',
    method: 'get',
    params: query
  })
}

// 查询订单汇总到期对应详细
export function getCustomerorderdq(customerId) {
  return request({
    url: '/CustomerorderlineDq/customerorderdq/' + customerId,
    method: 'get'
  })
}

// 查询订单汇总到期对应详细-实体
export function ggg(query) {
  return request({
    url: '/CustomerorderlineDq/customerorderdq/getdq',
    method: 'get',
    params: query
  })
}

// 新增订单汇总到期对应
export function addCustomerorderdq(data) {
  return request({
    url: '/CustomerorderlineDq/customerorderdq',
    method: 'post',
    data: data
  })
}

// 修改订单汇总到期对应
export function updateCustomerorderdq(data) {
  return request({
    url: '/CustomerorderlineDq/customerorderdq',
    method: 'put',
    data: data
  })
}

// 删除订单汇总到期对应
export function delCustomerorderdq(customerId) {
  return request({
    url: '/CustomerorderlineDq/customerorderdq/' + customerId,
    method: 'delete'
  })
}
